package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.CarInfoValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * CarInfo is a Codegen vo type
 */
@Label("车辆GPS接受信息")
@Domain(domainClassName="com.cloudlead.commonData.entity.ECarInfo")
public class CarInfo extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13151984921600L;    
    @Label("车辆所属公司")
    @Size(max=45)
    private String company;

    @Label("定位描述")
    @Size(max=45)
    private String describe;

    @Label("方向")
    @Size(max=45)
    private String direction;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("纬度")
    @Size(max=45)
    private String latitude;

    @Label("定位时间")
    @Size(max=45)
    private String locationTime;

    @Label("经度")
    @Size(max=45)
    private String longitude;

    @Label("里程")
    @Size(max=45)
    private String mileage;

    @Label("速度")
    @Size(max=45)
    private String speed;

    @Label("状态")
    @Size(max=45)
    private String status;

    @Label("车号")
    @Size(max=45)
    private String truckNo;

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLocationTime() {
        return locationTime;
    }

    public void setLocationTime(String locationTime) {
        this.locationTime = locationTime;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTruckNo() {
        return truckNo;
    }

    public void setTruckNo(String truckNo) {
        this.truckNo = truckNo;
    }

    public String toString() {
         return String.format("CarInfo { company : %s,describe : %s,direction : %s,id : %s,latitude : %s,locationTime : %s,longitude : %s,mileage : %s,speed : %s,status : %s,truckNo : %s }",company,describe,direction,id,latitude,locationTime,longitude,mileage,speed,status,truckNo);
    }

}

